use super::*;

pub struct ListDevicesCmd;

impl ListDevicesCmd {
  pub fn new() -> Self {
    ListDevicesCmd
  }
}

impl BinaryCommand for ListDevicesCmd {
  type Output = ();
  fn exec(&self) -> Self::Output {
    if cfg!(target_os = "windows") {
      panic!("no impl for windows!")
    } else {
      let output = Command::new(ADB_BIN).arg("devices").arg("-l").output();
      self.process_stdout::<&str>(output, None, None);
    }
  }
}
